package com.haiqi.common.persistence.dao;

import com.haiqi.common.persistence.entity.CrewUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CrewUserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(CrewUser record);

    int insertSelective(CrewUser record);

    CrewUser selectByPrimaryKey(Integer id);

    CrewUser selectByUserName(String loginUser);

    List<CrewUser> getDataList(CrewUser crewUser);

    List<CrewUser> getListByCompany(@Param(value = "companyId") String companyId,@Param(value = "userType") String userType,@Param(value = "shipName") String shipName);

    int updateByPrimaryKeySelective(CrewUser record);

    int updateByPrimaryKey(CrewUser record);



}